<?php
include('../Lib/php/conex.php');
$link= conectaSQL("influenza","inf123456","influenza");
include('../Lib/php/fechas.php');
include('../Lib/php/funciones.php');
import_request_variables("g,P");
if($id_generales > 0){
	$sql = "SELECT * FROM dat_registro WHERE id_generales = $id_generales";
	$res = mssql_query($sql,$link);
	$datos = mssql_fetch_array($res);

	$sql_mts = "SELECT * FROM aux_muestras WHERE id_principal= ".$datos['id_principal'];
	$res_mta = mssql_query($sql_mts,$link);
	$mta= mssql_fetch_array($res_mta);

}


?>
<link href="../Lib/css/estilos.css" rel="stylesheet" type="text/css" />
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><p align="center" class="Titulo_gral">LA INFORMACION SE GUARDO CORRECTAMENTE</p>
      <p align="center" class="Titulo_gral"><a href="imp_cedula.php?id_reg=<?php echo $datos["id_principal"]?>&id_principal=<?php echo $id_generales; ?>" target="_blank">IMPRIMIR CEDULA DEL PACIENTE</a></p>
      <?php
	  if($datos["nTomaMuestra"] == 1){
	  ?>
      <p align="center" class="Titulo_gral"><a href="imp_ficha.php?lav=4&id_muestras=<?php echo $datos["id_muestras"]?>&id_principal=<?php echo $id_generales; ?>" target="_blank">IMPRIMIR FICHA DE LABORATORIO</a></p>
    <?php } ?>
    <p align="center">&nbsp;</p></td>
  </tr>
</table>
